package com.wa.spring.factories;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;

/**
 * spring.factories中配置了，不需要添加@Configuration注解
 */
@Slf4j
public class EnableConfigurationBean {

    @Bean("enableConfigurationPropertiesConfigBean2")
    public Yellow authorResolver() {
        return new Yellow(1);
    }

    @Data
    @AllArgsConstructor
    public class Yellow {
        int x;
    }
}